<?php 
header("Content-type: text/html; charset=utf-8"); 
require_once("../include/conn.php");
$nname=$_REQUEST["name"];
$content=$_REQUEST["content"];
$file = $_FILES["uploadfile"]["tmp_name"];	

if(!empty($_REQUEST["id"]) and !empty($nname))
{

	$id=intval($_REQUEST["id"]);	
	if($id){
		$sql_jj="UPDATE `$tb_jj` SET `content` = '$content' WHERE `id` = '$id'";
		//die($sql_jj);
		$cn_jj = mysql_db_query($db_name,$sql_jj);

	}

		?>
		<script language="JavaScript" type="text/JavaScript">
		alert("操作已成功!");
		</script>
		<?
		 
		echo "<script language='javascript'>";
		
		echo "self.location="."'"."web_update.php?name=".$nname."&id=".$id."'";
		echo "</script>";	  

}
?>